package com.lanou3g.ptp.achievement.service;

import com.github.pagehelper.PageInfo;
import com.lanou3g.ptp.entity.Diary;
import com.lanou3g.ptp.entity.Summary;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Date;
import java.util.List;
import java.util.Map;

public interface SummaryService {
    //查询所有
    PageInfo<Summary> findAllSummary(Integer page, Integer size);

    List<Summary> findAll1Summary();

    //通过ID查询
    Summary findSummaryById(Long id);

    //模糊查询
    PageInfo<Summary> findByKeyword(Integer page, Integer size, String keyword);

    //新增
    void insert(Summary summary);

    //修改
    void updateSummary(Long id, Summary summary);

    //根据ID删除
    void deleteSummaryId(Long id);

    //删除多个
    void deleteSummaryIds(Long[] ids);

    List<Summary> MyFindAll(Long id);

    //查询指定学生的总结
    Summary findByTime (Long taskId, Long studentId);

    void newWord(Map<String,Object> result) throws IOException;
}
